<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改学员</title>
</head>
<body>
    <h2>修改学员</h2>
    <form action="/student/<%= data._id %>/update" method="post">
        姓名: <input type="text" name="name" value="<%= data.name %>"><br>
        年龄: <input type="text" name="age" value="<%= data.age %>"><br>
        邮箱: <input type="text" name="email" value="<%= data.email %>"><br>
        性别: 男<input type="radio" name="gender" value="男"  <% if(data.gender === '男'){ %>  checked  <% } %>  >
              女<input type="radio" name="gender" value="女" <% if(data.gender === '女'){ %>  checked  <% } %> >
              保密<input type="radio" name="gender" value="保密" <% if(data.gender === '保密'){ %>  checked  <% } %> >
        <br>
        <button>更新学员信息</button>
    </form>
</body>
</html>